package cn.doourbest.learnspring.inteceptor;

public class SqlThreadPool {

	private static InheritableThreadLocal<String> userIdLocal;

	static {
		userIdLocal = new InheritableThreadLocal<String>();
	}

	public static String getId() {
		String id = userIdLocal.get();
		return id;
	}

	public static void setId(String id) {
		userIdLocal.set(id);
	}

	public static void removeId() {
		userIdLocal.remove();
	}

}
